home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / mail.444 < prev    next >
Text File  |  1992-02-06  |  8KB  |  241 lines

  1. {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f1\fmodern Courier;\f4\ftech Symbol;}
  2. \paperw11140
  3. \paperh9120
  4. \margl480
  5. \margr0
  6. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs26 existing network sendmail setup\
  7. \
  8.  
  9. \fs24 Q. I have a NeXT on a local non-NetInfo Network.  The one machine on my local network that is connected to the Internet is not a NeXT.  How can I set up my NeXT so I can send and receive mail?\
  10. \
  11. A. 
  12. \i A prefatory note
  13. \i0 : if you are not your site's network administrator charged with supporting sendmail, check with him or her before embarking on this.  It may be necessary to use a locally-modified sendmail configuration file (
  14. \f1 sendmail.cf
  15. \f0 ).\
  16. \
  17.  
  18. \b Assumptions
  19. \b0 :\
  20. \
  21. •    You are running NetInfo, on a non-NetInfo network.  Make sure you have not shut NetInfo off; you can check this by doing the following in a Shell or Terminal window:\
  22. \
  23.  
  24. \f1 myhost# 
  25. \b nidomain -l
  26. \b0 \
  27. tag=local udp=667 tcp=669\
  28.  
  29. \f0 \
  30. \
  31.     The critical thing in the output from nidomain(8) is the 
  32. \f1 tag=local
  33. \f0  part.  A line with this indicates that the local machine is serving the local NetInfo database; this indicates NetInfo is running correctly.  (The values for the 
  34. \f1 udp
  35. \f0 and 
  36. \f1 tcp
  37. \f0  fields are irrelevant here.)\
  38. •    You are logged in as root.\
  39. \
  40. •    The machine that is on the Internet will be your “mailhost” (your interface to the outside world).  For the purposes of this document, we call this machine 
  41. \b mailcarrier
  42. \b0 .\
  43. \
  44. 1.    Launch /NextAdmin/NetinfoManager (this is the application with the T connector and question mark in the icon).\
  45. \
  46. 2.    Verify that
  47. \b  mailcarrier 
  48. \b0 is in the /machines directory of your local NetInfo domain.  Click once on the /machines directory.  If there is not an entry for 
  49. \b mailcarrier
  50. \b0 , then you must create one by doing the following:\
  51. \
  52. •    Click once on localhost in the  
  53. \b machines
  54. \b0  directory.\
  55. \
  56. •    Choose the Duplicate command from the Directory menu selection; a directory named 
  57. \b Copy_of_localhost 
  58. \b0 then appears
  59. \b  
  60. \b0 in the machines column.\
  61. \
  62. •    Double-click on 
  63. \b Copy_of_localhost
  64. \b0  to bring up the Property Editor panel.  Notice that the panel has two columns labeled “Properties” and “Values.”\
  65. •    Rename 
  66. \b Copy_of_localhost
  67. \b0  to 
  68. \b mailcarrier 
  69. \b0 in the field beneath the Values column; then press the Action button in the Values column and drag to the Rename option.\
  70. \
  71. •    Click on the 
  72. \b ip_address 
  73. \b0 property.  Rename 
  74. \b 127.0.0.1
  75. \b0  to the IP address of mailcarrier in the field beneath the Values column, then press the Action button in the Values column  and drag to the Rename option. \
  76. \
  77. •    Click on the 
  78. \b serves
  79. \b0  
  80. \b  
  81. \b0 property.  Delete this property by pressing the Action button in the Properties column and drag to the Delete option.\
  82. \
  83. •    Click on the 
  84. \b OK
  85. \b0  button.\
  86. 3.    Once 
  87. \b mailcarrier
  88. \b0  is in the machines directory, you need to add 
  89. \b mailhost
  90. \b0  as one of the values of the Property name.  Double click on 
  91. \b mailcarrier
  92. \b0  to bring up the Property Editor panel.  In the Properties column click on 
  93. \b name. 
  94. \b0  In the Values column, change mailcarrier to mailhost; press the Action button and drag to the Append option.  Click on the OK button.\
  95. \
  96. 4.    Check the
  97. \b  localhost
  98. \b0  entry in the machines directory to see if the property name has 
  99. \b mailhost
  100. \b0  as one of its values.  If it does, delete the value 
  101. \b mailhost
  102. \b0  from the name property of l
  103. \b ocalhost
  104. \b0 .  (This step is included for those who used niload to upload an /etc/hosts database from a central administrative machine — like 
  105. \b mailcarrier
  106. \b0 !)\
  107. \
  108. 5.    Start up a Shell Window (/NextApps/Shell).\
  109. \
  110. 6.    Change directories to the sendmail directory:\
  111. \
  112.  
  113. \f1 myhost# cd /etc/sendmail\
  114.  
  115. \f0 \
  116. 7.    There are three different sendmail configuration files in 
  117. \f1 /etc/sendmail
  118. \f0 .  They are:\
  119.  
  120. \f1 sendmail.subsidiary.cf
  121. \f0  is the default configuration file.  Local mail is delivered locally, mail to machines in the local domain is delivered directly to those machines, and mail to machines in any other domains is forwarded to “mailhost.”\
  122. \
  123.  
  124. \f1 sendmail.sharedsubsidiary.cf
  125. \f0  is used if you mount the directory 
  126. \f1 /usr/spool/mail
  127. \f0  from “mailhost.”  It delivers mail to machines in the local domain directly to those machines.  All other mail (local mail and non-local domains) goes to “mailhost.”\
  128. \
  129. sendmail.mailhost.cf is used on the machine that is the mailhost.  It tries to deliver all mail directly to its location.  You can edit this file to specify an even smarter mail relay to handle the addresses the mailhost doesn't understand.
  130. \fs28 \
  131.  
  132. \fs24 \
  133.     Either
  134. \f1  sendmail.subsidiary.cf
  135. \f0  or 
  136. \f1 sendmail.sharedsubsidiary.cf
  137. \f0  will be used when setting up a mail client; if you are not mounting
  138. \f1  /usr/spool/mail 
  139. \f0 from mailhost, use the former, and use the latter if you do mount it.  The file 
  140. \f1 sendmail.cf 
  141. \f0 should be a symbolic link to the appropriate file.  Verify this either with 
  142. \f1 ls -l
  143. \f0  or with the Workspace Manager's \
  144.     
  145. \qc Files
  146. \f4  fi 
  147. \f0 More Info\
  148.  
  149. \ql menu item.  If the link is incorrect, remove 
  150. \f1 sendmail.cf 
  151. \f0 and make an appropriate symbolic link, using either
  152. \f1  ln -s
  153. \f0  or the Workspace Manager (Control-drag; you'll see a double-headed arrow to indicate a symbolic link is being created).  (See the 
  154. \i Network and System Administration 
  155. \i0 manual for more information on NFS mounting file systems and sendmail.)\
  156. \
  157. 8.    Reboot your system, or stop and restart the sendmail daemon:\
  158.  
  159. \f1 \
  160. myhost# ps -ax |grep sendmail\
  161. myhost# kill 
  162. \i pid
  163. \i0     
  164. \f0 [
  165. \i pid 
  166. \i0 obtained from the above command
  167. \f1 ]\
  168. myhost# /usr/lib/sendmail -bd -q1h\
  169. \
  170.  
  171. \f0 9.  If you are using the Internet Domain Name Service (BIND) at your site, you will need to create the file
  172. \f1  /etc/resolv.conf
  173. \f0  to access the facility (see the 
  174. \i Network and System Administration
  175. \i0  manual for more information on BIND. )\
  176. \
  177. Mail should be delivered correctly at this point.  Your mail, if addressed properly, will be sent to your machine via the machine 
  178. \b mailcarrier
  179. \b0 .  You should also be able to send mail from your NeXT computer.  Try sending mail to an account you have on another machine.  Check to see if you get it there.  Log onto 
  180. \b mailcarrier
  181. \b0  or another machine and send mail to your account on your NeXT computer and see if you get it. \
  182.  
  183. \b\i \
  184. \
  185. DEBUGGING NOTE
  186. \b0 : If this doesn't work, do the following:\
  187. \
  188.  
  189. \i0 •    Verify the binding of “mailhost.”  From a shell:\
  190. \
  191.  
  192. \f1 myhost% 
  193. \b /usr/etc/ping mailhost 10 2
  194. \b0 \
  195. PING mailcarrier: 10 data bytes\
  196. 18 bytes from 129.18.2.74: icmp_seq=0. time=11. ms\
  197. 18 bytes from 129.18.2.74: icmp_seq=1. time=10. ms\
  198. \
  199. ----mailcarrier PING Statistics----\
  200. 2 packets transmitted, 2 packets received, 0% packet loss\
  201. round-trip (ms)  min/avg/max = 10/10/11\
  202.  
  203. \f0 \
  204.     Check the name of the machine actually contacted.  If it is not 
  205. \b mailcarrier
  206. \b0 , you have the name 
  207. \b mailhost
  208. \b0  as a value of the name property for another machine (the machine named in the ping output) in the NetInfo domain's /machines directory.  Using NetInfoManager delete the value 
  209. \b mailhost
  210. \b0  from this machine's name property, since it is not the 
  211. \b mailhost
  212. \b0  for the network. \
  213. •    Repeat the ping test until you contact 
  214. \b mailcarrier.
  215. \b0 \
  216. \
  217. •    Verify that the 
  218. \f1 sendmail.cf
  219. \f0  symbolic link is referencing the correct sendmail configuration file in 
  220. \f1 /etc/sendmail
  221. \f0 .   This was done in step 7 above.\
  222. \
  223. •    Use sendmail's address testing option to examine the parsing steps used by sendmail:\
  224. \
  225.  
  226. \f1 /usr/lib/sendmail -bt
  227. \f0 \
  228. \
  229.     See the sendmail(8) man page for more information.\
  230. \
  231. •    If you are still having problems you may need to modify the 
  232. \f1 sendmail.cf
  233. \f0  file to your site's specification.  Consult with another network administrator at your site — one charged with your site's sendmail support — for more information.  Also refer to the Sendmail documentation in Appendix C of the on-line 1.0 System Administration manual (accessible in the NeXT Manuals via the Digital Librarian).\
  234. \
  235. QA444\
  236. \
  237. Valid for 1.0 \
  238. Valid for 2.0\
  239. \
  240.  
  241.